import { AuthGuard, ReplaceableComponents, ReplaceableRouteContainerComponent } from '@abp/ng.core';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home.component';

const routes: Routes = [
  {
    path: '',
    component: ReplaceableRouteContainerComponent,
    canActivate: [AuthGuard],
    data: {
      replaceableComponent: {
        key: 'eAccountComponents.home1',
        defaultComponent: HomeComponent,
      } as ReplaceableComponents.RouteData<HomeComponent>,
    },
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class HomeRoutingModule {}
